package com.fulu.game.bi.controller.product;

import com.fulu.game.bi.entity.vo.Result;
import com.fulu.game.bi.service.impl.product.ProductConditionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 产品
 */
@RestController
@RequestMapping("/api/product/condition")
@Slf4j
public class ProductConditionController {

    @Autowired
    private ProductConditionService productConditionService;

    /**
     * 产品-事件分析-条件
     */
    @RequestMapping("/event")
    public Result eventCondition() {
        return Result.success().data(productConditionService.eventCondition());
    }

    /**
     * 产品-漏斗分析-条件
     */
    @RequestMapping("/funnel")
    public Result funnelCondition() {
        return Result.success().data(productConditionService.funnelCondition());
    }


}
